package com.hpu.constants;

/**
 * 封装了网络请求的返回结果
 * 
 * @author Administrator
 * 
 */
public class HttpConstants {

	public static final int NO_INTERNET=-5;
	
	/**
	 * VPN过期
	 */
	public static final int VPN_TOOLONG = -1;
	
	public static final int NOEXPECT=-2;
	
	public static final int NEED_INFO=-4;
	
	/**
	 * 登录：key错误
	 */
	public static final int KEY_ERROR = -3;
	
	/**
	 * 登录成功
	 */
	public static final int LOGIN_SUCCESS = 1;

	/**
	 * 登录：vpn密码错误
	 */
	public static final int LOGIN_PASSWORD_ERROR = 4;

	/**
	 * 登录：教务处密码错误
	 */
	public static final int LOGIN_JWPASSWORD_ERROR = 5;

	/**
	 * 登录：登录时发生异常
	 */
	public static final int LOGIN_ERROR = 6;
	
	

	/**
	 * 获取学籍信息成功
	 */
	public static final int QUERY_INFO_SUCCESS = 10;

	/**
	 * 获取学籍信息失败
	 */
	public static final int QUERY_INFO_ERROR = 11;

	/**
	 * 获取课程成功
	 */
	public static final int QUERY_COURSE_SUCCESS = 12;

	/**
	 * 获取课程失败
	 */
	public static final int QUERY_COURSE_ERROR = 13;

	/**
	 * 获取期末成绩成功
	 */
	public static final int QUERY_SCORE_SUCCESS = 14;

	/**
	 * 获取期末成绩失败
	 */
	public static final int QUERY_SCORE_ERROR = 15;

	/**
	 * 获取不及格成绩成功
	 */
	public static final int QUERY_FAILSCORE_SUCCESS = 16;

	/**
	 * 获取不及格成绩失败
	 */
	public static final int QUERY_FAILSCORE_ERROR = 17;

	/**
	 * 获取空教室成功
	 */
	public static final int QUERY_ROOM_SUCCESS = 18;

	/**
	 * 获取空教室异常
	 */
	public static final int QUERY_ROOM_ERROR = 19;

	/**
	 * 获取任选课汇总成功
	 */
	public static final int QUERY_CLASS_SUCCESS = 21;

	/**
	 * 获取任选课失败
	 */
	public static final int QUERY_CLASS_ERROR = 22;

	/**
	 * 获取周次成功
	 */
	public static final int QUERY_WEEK_SUCCESS = 23;

	/**
	 * 获取周次失败
	 */
	public static final int QUERY_WEEK_ERROR = 24;
	
	public static final int QUERY_WEEK_TOOLONG = 50;

	/**
	 * 下载文件成功
	 */
	public static final int DOWNLOAD_ERROR = 27;

	/**
	 * 下载文件失败
	 */
	public static final int DOWNLOAD_SUCCESS = 28;

	public static final int SCAN_SUCCESS = 29;

	public static final int SCAN_ERROR = 30;
	public static final int SCAN_KEY_ERROR = 31;

	public static final int QUERY_SCHOOLNEWS_SUCCESS = 32;

	public static final int QUERY_SCHOOLNEWS_ERROR = 33;
	
	public static final int QUERY_ALLSCORE_ERROR = 80;
	public static final int QUERY_ALLSCORE_SUCCESS = 81;
	public static final int QUERY_XUEYUAN_NEWS_ERROR = 82;
	public static final int QUERY_XUEYUAN_NEWS_SUCCESS = 83;
	
	public static final int QUERY_XUEYUAN_NOTICE_ERROR = 86;
	public static final int QUERY_XUEYUAN_NOTICE_SUCCESS = 87;
			
	public static final int QUERY_BOOK_ERROR = 84;
	public static final int QUERY_BOOK_SUCCESS = 85;
	
	public static final int QUERY_SCHOOL_NOTICE_ERROR = 90;
	public static final int QUERY_SCHOOL_NOTICE_SUCCESS = 91;
	
	public static final int QUERY_LECTURE_ERROR = 92;
	public static final int QUERY_LECTURE_SUCCESS = 93;
	
	/**
	 * 课程分享上传
	 */
	public static final int SHARE_COURSE_UPLOAD_OVERLENGTH=100;
	public static final int SHARE_COURSE_UPLOAD_FAIL=101;
	public static final int SHARE_COURSE_UPLOAD_ERROR=102;
	public static final int SHARE_COURSE_UPLOAD_SUCCESS=103;
	
	/**
	 * 课程分享下载
	 */
	public static final int SHARE_COURSE_DOWNLOAD_FAIL=104;
	public static final int SHARE_COURSE_DOWNLOAD_ERROR=105;
	public static final int SHARE_COURSE_DOWNLOAD_SUCCESS=106;
	
	public static final int LOGIN_PEOPLE_OVER=107;
	
	public static final int QUERY_VERSION_SUCCESS=108;
	public static final int QUERY_VERSION_ERROR=109;
	public static final int QUERY_VERSION_NOUPDATE=112;
	
	public static final int LOG_UPLOAD_SUCCESS=110;
	public static final int LOG_UPLOAD_ERROR=111;
	
	public static final int UPLOAD_HEAD_IMAGE_ERROR=113;
	public static final int UPLOAD_HEAD_IMAGE_SUCCESS=114;
	
	public static final int DOWNLOAD_IMAGE_ERROR=115;
	public static final int DOWNLOAD_IMAGE_SUCCESS=116;
	public static final int DOWNLOAD_IMAGE_NOFIND=117;
	
	public static final int GET_IMAGEPATH_SUCCESS=118;
	public static final int GET_IMAGEPATH_ERROR=119;

	//***

	public static final int QUERY_ELECTRIC_SUCCESS=120;
	public static final int QUERY_ELECTRIC__ERROR=121;

	public static final int ERROR=122;

	public static final int QUERY_BODY_SCORE_SUCCESS=123;
	public static final int QUERY_BODY_SCORE__ERROR=124;

	public static final int QUERY_BOOK_BORROW_SUCCESS=125;
	public static final int QUERY_BOOK_BORROW__ERROR=126;


}
